<!--底部 友链 版权-->
<div id="bottom">
	<!--友情链接-->
	<div class="bottom_youlian">
		<div class="bottom_youlian_a">友情链接</div>
		<?php
				//准备sql
				$sql = "select id,username,url,logo,keywords from friends order by id";
				//执行sql
				$res = mysqli_query($link,$sql);
				//判断
				if($res && mysqli_num_rows($res)){
					while($fdinfo = mysqli_fetch_assoc($res)){			
			?>
			
			<div id="bottom_youlian_b">
			<table>
				<tr>
					<td>
						<img src="images/s_<?php echo $fdinfo['logo']?>">
					</td>
					<td>
						<a href="<?php echo $fdinfo['url']?>"><?php echo $fdinfo['username']?></a><br>
						<?php echo $fdinfo['keywords']?>
					</td>
				</tr>
			</table>
			</div>
			
		<?php
					}
				}
			?>
	</div>
	<div class="clear"></div>
	<!--版权-->
	<div class="bottom_banquan">
		<div class="bottom_banquan_a">
			powered by <b>Discuz!</b> x2.5<br>
			&copy;2001-2012 Comsenz Inc.
		</div>
		<div class="bottom_banquan_b">
			Archiver <b>|手机版|<?php echo WZ_COPY;?></b>(京ICP证110024号|京网文[2011]0019-007号|北京公安备案:1101082242)<br>
			GMT+8,2012-11-13 20:33,Processed in 0.030692 secound(s),2 queries,Gzip On,Memcached On.
		</div>
	</div>
</div>
<?php
//关闭数据库链接
mysqli_close($link);
?>